-- GENERATED SPELL FOR [Ma'ruk Wyrmscale] --


function spell0_2090(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_2090', 593, 1)
end

function Sorts_2090(pUnit, Event)
local choix_sorts_2090 = math.random(0, 0)
if choix_sorts_2090 == 0 then
pUnit:RegisterEvent('spell0_2090', 1, 1)
end
end

function mob2090_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2090', math.random(1500, 3000), 1)
end

function mob2090_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2090_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2090_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2090, 1, 'mob2090_Action')
RegisterUnitEvent(2090, 2, 'mob2090_Leave')
RegisterUnitEvent(2090, 3, 'mob2090_Kill')
RegisterUnitEvent(2090, 4, 'mob2090_Die')
